/*
 * @Description: 
 * @Author: xuzp4
 * @Date: 2021-06-15 11:02:00
 * @LastEditors: xuzp4
 * @LastEditTime: 2021-06-15 11:15:04
 * @FilePath: \vue_demo\src\view\load\data\parse.js
 */
const fs = require('fs');
const path =require('path');
let data = [
    {
      geometry: {
        coordinates: [
          [113.71015227570862, 24.547724192338542],
          [113.71055238732535, 24.547300350437098]
        ]
      },
      id: 1,
      len: 70
    },
    {
      geometry: {
        coordinates: [
          [113.71064551425033, 24.54720250587254],
          [113.71055238732535, 24.547300350437098]
        ]
      },
      id: 3,
      len: 15.8
    },
    {
      geometry: {
        coordinates: [
          [113.71353656668077, 24.564962135203672],
          [113.71359885700704, 24.56510256573337]
        ]
      },
      id: 10,
      len: 18.5
    },
    {
      geometry: {
        coordinates: [
          [113.7140186452356, 24.564078537525106],
          [113.71361448750037, 24.564518559403425]
        ]
      },
      id: 16,
      len: 71.8
    },
    {
      geometry: {
        coordinates: [
          [113.71374720861485, 24.566809777084664],
          [113.71437207600431, 24.567763260673303]
        ]
      },
      id: 17,
      len: 136.8
    },
    {
      geometry: {
        coordinates: [
          [113.71443962049833, 24.561733391679518],
          [113.71625374312228, 24.559720000416405]
        ]
      },
      id: 30,
      len: 321.1
    },
    {
      geometry: {
        coordinates: [
          [113.71588377924223, 24.56596078441185],
          [113.71582641904675, 24.565686274593688]
        ]
      },
      id: 44,
      len: 34.6
    },
    {
      geometry: {
        coordinates: [
          [113.71610330550683, 24.56592340304927],
          [113.71643162551416, 24.566230215239514]
        ]
      },
      id: 49,
      len: 53.3
    },
    {
      geometry: {
        coordinates: [
          [113.716445116192, 24.559743389114104],
          [113.71617884870173, 24.560336292260416]
        ]
      },
      id: 51,
      len: 82.6
    },
    {
      geometry: {
        coordinates: [
          [113.71691405381591, 24.56846369215875],
          [113.7179581876187, 24.56775839197045]
        ]
      },
      id: 62,
      len: 193.7
    },
    {
      geometry: {
        coordinates: [
          [113.71729779118454, 24.558508543137783],
          [113.717334212803, 24.558501207110595]
        ]
      },
      id: 65,
      len: 4.2
    },
    {
      geometry: {
        coordinates: [
          [113.71797637304704, 24.56161768196249],
          [113.71840263237303, 24.562013303902468]
        ]
      },
      id: 75,
      len: 68.6
    },
    {
      geometry: {
        coordinates: [
          [113.71797637304704, 24.56161768196249],
          [113.71797938271868, 24.56160922921648]
        ]
      },
      id: 77,
      len: 1.1
    },
    {
      geometry: {
        coordinates: [
          [113.71882294853356, 24.559458895030048],
          [113.71897892602021, 24.559308173445608]
        ]
      },
      id: 91,
      len: 26.7
    },
    {
      geometry: {
        coordinates: [
          [113.72166162829276, 24.556095689539973],
          [113.72224823467323, 24.556165877018238]
        ]
      },
      id: 114,
      len: 66.3
    },
    {
      geometry: {
        coordinates: [
          [113.72166162829276, 24.556095689539973],
          [113.7219136561385, 24.55543122169822]
        ]
      },
      id: 115,
      len: 86.3
    },
    {
      geometry: {
        coordinates: [
          [113.72264854343939, 24.556956052667218],
          [113.72176693870057, 24.556961847091372]
        ]
      },
      id: 116,
      len: 107.1
    },
    {
      geometry: {
        coordinates: [
          [113.7219136561385, 24.55543122169822],
          [113.72196621026578, 24.55542767195403]
        ]
      },
      id: 117,
      len: 5.9
    },
    {
      geometry: {
        coordinates: [
          [113.72224823467323, 24.556165877018238],
          [113.72196621026578, 24.55542767195403]
        ]
      },
      id: 118,
      len: 96.8
    },
    {
      geometry: {
        coordinates: [
          [113.72213546725558, 24.558294572848624],
          [113.72197641293135, 24.558319566584352]
        ]
      },
      id: 120,
      len: 18
    },
    {
      geometry: {
        coordinates: [
          [113.72264854343939, 24.556956052667218],
          [113.72274597490832, 24.55676184758469]
        ]
      },
      id: 126,
      len: 26.1
    },
    {
      geometry: {
        coordinates: [
          [113.72498852756965, 24.554179725742053],
          [113.72516836112763, 24.554352626542745]
        ]
      },
      id: 131,
      len: 29.1
    },
    {
      geometry: {
        coordinates: [
          [113.71055238732535, 24.547300350437098],
          [113.71064551425033, 24.54720250587254]
        ]
      },
      id: 2,
      len: 130.7
    },
    {
      geometry: {
        coordinates: [
          [113.71064551425033, 24.54720250587254],
          [113.71077188233843, 24.547069000584536]
        ]
      },
      id: 4,
      len: 21.9
    },
    {
      geometry: {
        coordinates: [
          [113.71106584719783, 24.54649999980216],
          [113.71077188233843, 24.547069000584536]
        ]
      },
      id: 5,
      len: 93
    },
    {
      geometry: {
        coordinates: [
          [113.71259727139841, 24.545578792991734],
          [113.71077188233843, 24.547069000584536]
        ]
      },
      id: 6,
      len: 284.5
    },
    {
      geometry: {
        coordinates: [
          [113.71582641904675, 24.565686274593688],
          [113.71610330550683, 24.56592340304927]
        ]
      },
      id: 43,
      len: 42.7
    },
    {
      geometry: {
        coordinates: [
          [113.71353446528593, 24.566238058040405],
          [113.71375053617334, 24.56680032175032]
        ]
      },
      id: 8,
      len: 73.4
    },
    {
      geometry: {
        coordinates: [
          [113.71375053617334, 24.56680032175032],
          [113.71374720861485, 24.566809777084664]
        ]
      },
      id: 18,
      len: 1.2
    },
    {
      geometry: {
        coordinates: [
          [113.71502882639129, 24.554656025854193],
          [113.71464580768347, 24.555049064997107]
        ]
      },
      id: 32,
      len: 67.6
    },
    {
      geometry: {
        coordinates: [
          [113.71920455726317, 24.55811346263748],
          [113.71932092091527, 24.558080698805277]
        ]
      },
      id: 93,
      len: 13.6
    },
    {
      geometry: {
        coordinates: [
          [113.71389312476742, 24.56259103731447],
          [113.71353656668077, 24.564962135203672]
        ]
      },
      id: 11,
      len: 539.3
    },
    {
      geometry: {
        coordinates: [
          [113.71361448750037, 24.564518559403425],
          [113.71353656668077, 24.564962135203672]
        ]
      },
      id: 12,
      len: 55.3
    },
    {
      geometry: {
        coordinates: [
          [113.71502882639129, 24.554656025854193],
          [113.7155368750548, 24.554426682110247]
        ]
      },
      id: 33,
      len: 63.4
    },
    {
      geometry: {
        coordinates: [
          [113.71359885700704, 24.56510256573337],
          [113.71419501645929, 24.566394253764614]
        ]
      },
      id: 13,
      len: 175.7
    },
    {
      geometry: {
        coordinates: [
          [113.71359885700704, 24.56510256573337],
          [113.7140186452356, 24.564078537525106]
        ]
      },
      id: 14,
      len: 154.2
    },
    {
      geometry: {
        coordinates: [
          [113.71361448750037, 24.564518559403425],
          [113.71440540882045, 24.56180073701941]
        ]
      },
      id: 15,
      len: 347.8
    },
    {
      geometry: {
        coordinates: [
          [113.71259727139841, 24.545578792991734],
          [113.7151384228703, 24.54486754979257]
        ]
      },
      id: 7,
      len: 297.6
    },
    {
      geometry: {
        coordinates: [
          [113.71353446528593, 24.566238058040405],
          [113.71374720861485, 24.566809777084664]
        ]
      },
      id: 9,
      len: 111.2
    },
    {
      geometry: {
        coordinates: [
          [113.71381130014939, 24.566468268699147],
          [113.71375053617334, 24.56680032175032]
        ]
      },
      id: 19,
      len: 53.2
    },
    {
      geometry: {
        coordinates: [
          [113.716445116192, 24.559743389114104],
          [113.71644566692498, 24.559398109873825]
        ]
      },
      id: 57,
      len: 44.5
    },
    {
      geometry: {
        coordinates: [
          [113.71389312476742, 24.56259103731447],
          [113.71440540882045, 24.56180073701941]
        ]
      },
      id: 20,
      len: 124.1
    },
    {
      geometry: {
        coordinates: [
          [113.71610330550683, 24.56592340304927],
          [113.71617884870173, 24.560336292260416]
        ]
      },
      id: 21,
      len: 530.2
    },
    {
      geometry: {
        coordinates: [
          [113.71464580768347, 24.555049064997107],
          [113.71408717528047, 24.555076051180862]
        ]
      },
      id: 22,
      len: 63.9
    },
    {
      geometry: {
        coordinates: [
          [113.71526293136853, 24.55475408147504],
          [113.71408717528047, 24.555076051180862]
        ]
      },
      id: 23,
      len: 241.1
    },
    {
      geometry: {
        coordinates: [
          [113.71408717528047, 24.555076051180862],
          [113.71502882639129, 24.554656025854193]
        ]
      },
      id: 24,
      len: 130.7
    },
    {
      geometry: {
        coordinates: [
          [113.71456757214153, 24.567515823706486],
          [113.71419501645929, 24.566394253764614]
        ]
      },
      id: 25,
      len: 147.5
    },
    {
      geometry: {
        coordinates: [
          [113.71437207600431, 24.567763260673303],
          [113.71446181596622, 24.567919906915968]
        ]
      },
      id: 26,
      len: 22.6
    },
    {
      geometry: {
        coordinates: [
          [113.71437207600431, 24.567763260673303],
          [113.71456757214153, 24.567515823706486]
        ]
      },
      id: 27,
      len: 46.1
    },
    {
      geometry: {
        coordinates: [
          [113.71440540882045, 24.56180073701941],
          [113.71443962049833, 24.561733391679518]
        ]
      },
      id: 28,
      len: 9.1
    },
    {
      geometry: {
        coordinates: [
          [113.71443962049833, 24.561733391679518],
          [113.7155368750548, 24.554426682110247]
        ]
      },
      id: 29,
      len: 1014.7
    },
    {
      geometry: {
        coordinates: [
          [113.71456757214153, 24.567515823706486],
          [113.71446181596622, 24.567919906915968]
        ]
      },
      id: 31,
      len: 51.8
    },
    {
      geometry: {
        coordinates: [
          [113.7151384228703, 24.54486754979257],
          [113.71530527107285, 24.544253792576527]
        ]
      },
      id: 34,
      len: 107.7
    },
    {
      geometry: {
        coordinates: [
          [113.7151384228703, 24.54486754979257],
          [113.72140939014062, 24.54398356217302]
        ]
      },
      id: 35,
      len: 754.1
    },
    {
      geometry: {
        coordinates: [
          [113.71516640533841, 24.56391266538143],
          [113.71582641904675, 24.565686274593688]
        ]
      },
      id: 36,
      len: 236.9
    },
    {
      geometry: {
        coordinates: [
          [113.71516640533841, 24.56391266538143],
          [113.71668787635781, 24.568297679940095]
        ]
      },
      id: 37,
      len: 598
    },
    {
      geometry: {
        coordinates: [
          [113.71516640533841, 24.56391266538143],
          [113.71516640533841, 24.56391266538143]
        ]
      },
      id: 38,
      len: 89.6
    },
    {
      geometry: {
        coordinates: [
          [113.71544562811971, 24.563230592403478],
          [113.71855983885354, 24.559391264816952]
        ]
      },
      id: 39,
      len: 608.8
    },
    {
      geometry: {
        coordinates: [
          [113.71544562811971, 24.563230592403478],
          [113.71589875509622, 24.56267489490802]
        ]
      },
      id: 40,
      len: 85
    },
    {
      geometry: {
        coordinates: [
          [113.7155368750548, 24.554426682110247],
          [113.7162152379804, 24.554298451855537]
        ]
      },
      id: 41,
      len: 86.8
    },
    {
      geometry: {
        coordinates: [
          [113.71644566692498, 24.559398109873825],
          [113.71729779118454, 24.558508543137783]
        ]
      },
      id: 58,
      len: 146.1
    },
    {
      geometry: {
        coordinates: [
          [113.71571985181353, 24.56520847054354],
          [113.71643162551416, 24.566230215239514]
        ]
      },
      id: 42,
      len: 192.9
    },
    {
      geometry: {
        coordinates: [
          [113.71588377924223, 24.56596078441185],
          [113.7168866161411, 24.567378045898046]
        ]
      },
      id: 46,
      len: 251.4
    },
    {
      geometry: {
        coordinates: [
          [113.71589875509622, 24.56267489490802],
          [113.71633444069951, 24.561941137327302]
        ]
      },
      id: 47,
      len: 116.2
    },
    {
      geometry: {
        coordinates: [
          [113.7160336110299, 24.562193181129942],
          [113.71589875509622, 24.56267489490802]
        ]
      },
      id: 48,
      len: 61.3
    },
    {
      geometry: {
        coordinates: [
          [113.71617884870173, 24.560336292260416],
          [113.71737792779413, 24.559420623255626]
        ]
      },
      id: 50,
      len: 177.7
    },
    {
      geometry: {
        coordinates: [
          [113.71643839147413, 24.55844461015905],
          [113.7162152379804, 24.554298451855537]
        ]
      },
      id: 52,
      len: 522.9
    },
    {
      geometry: {
        coordinates: [
          [113.7162152379804, 24.554298451855537],
          [113.71765961288915, 24.554334892542734]
        ]
      },
      id: 53,
      len: 551.2
    },
    {
      geometry: {
        coordinates: [
          [113.716445116192, 24.559743389114104],
          [113.71625374312228, 24.559720000416405]
        ]
      },
      id: 54,
      len: 21.6
    },
    {
      geometry: {
        coordinates: [
          [113.71644566692498, 24.559398109873825],
          [113.71625374312228, 24.559720000416405]
        ]
      },
      id: 55,
      len: 45.4
    },
    {
      geometry: {
        coordinates: [
          [113.71643162551416, 24.566230215239514],
          [113.71680586499815, 24.566785536867492]
        ]
      },
      id: 56,
      len: 80.9
    },
    {
      geometry: {
        coordinates: [
          [113.7165484412372, 24.56874000334387],
          [113.71668787635781, 24.568297679940095]
        ]
      },
      id: 59,
      len: 58.6
    },
    {
      geometry: {
        coordinates: [
          [113.71668787635781, 24.568297679940095],
          [113.71691405381591, 24.56846369215875]
        ]
      },
      id: 60,
      len: 32.5
    },
    {
      geometry: {
        coordinates: [
          [113.71680586499815, 24.566785536867492],
          [113.71728690529369, 24.56786538939197]
        ]
      },
      id: 61,
      len: 153.6
    },
    {
      geometry: {
        coordinates: [
          [113.71710027372157, 24.55502276445695],
          [113.71765961288915, 24.554334892542734]
        ]
      },
      id: 63,
      len: 108.9
    },
    {
      geometry: {
        coordinates: [
          [113.71728690529369, 24.56786538939197],
          [113.7179581876187, 24.56775839197045]
        ]
      },
      id: 64,
      len: 86.6
    },
    {
      geometry: {
        coordinates: [
          [113.717334212803, 24.558501207110595],
          [113.71737792779413, 24.559420623255626]
        ]
      },
      id: 66,
      len: 126.2
    },
    {
      geometry: {
        coordinates: [
          [113.717334212803, 24.558501207110595],
          [113.71750524293014, 24.557977480532713]
        ]
      },
      id: 67,
      len: 67.8
    },
    {
      geometry: {
        coordinates: [
          [113.71737792779413, 24.559420623255626],
          [113.71920455726317, 24.55811346263748]
        ]
      },
      id: 68,
      len: 269.3
    },
    {
      geometry: {
        coordinates: [
          [113.71750524293014, 24.557977480532713],
          [113.71754921197413, 24.55776568357654]
        ]
      },
      id: 69,
      len: 26.6
    },
    {
      geometry: {
        coordinates: [
          [113.71754921197413, 24.55776568357654],
          [113.71784707807126, 24.558076988395086]
        ]
      },
      id: 70,
      len: 78.1
    },
    {
      geometry: {
        coordinates: [
          [113.71765961288915, 24.554334892542734],
          [113.71754921197413, 24.55776568357654]
        ]
      },
      id: 71,
      len: 442.6
    },
    {
      geometry: {
        coordinates: [
          [113.71763776785644, 24.56233153138603],
          [113.71809324836241, 24.562129436575646]
        ]
      },
      id: 72,
      len: 56.8
    },
    {
      geometry: {
        coordinates: [
          [113.717747194217, 24.561311965222025],
          [113.71797938271868, 24.56160922921648]
        ]
      },
      id: 73,
      len: 49.1
    },
    {
      geometry: {
        coordinates: [
          [113.71876402787822, 24.562663996429123],
          [113.71901481926787, 24.56150726912425]
        ]
      },
      id: 89,
      len: 146.1
    },
    {
      geometry: {
        coordinates: [
          [113.71855983885354, 24.559391264816952],
          [113.71882294853356, 24.559458895030048]
        ]
      },
      id: 87,
      len: 32.4
    },
    {
      geometry: {
        coordinates: [
          [113.71882294853356, 24.559458895030048],
          [113.71897892602021, 24.559308173445608]
        ]
      },
      id: 90,
      len: 77.6
    },
    {
      geometry: {
        coordinates: [
          [113.72512893887705, 24.553829413335684],
          [113.72473078486348, 24.553857316700956]
        ]
      },
      id: 130,
      len: 50.1
    },
    {
      geometry: {
        coordinates: [
          [113.7179581876187, 24.56775839197045],
          [113.71876402787822, 24.562663996429123]
        ]
      },
      id: 74,
      len: 675.9
    },
    {
      geometry: {
        coordinates: [
          [113.71809324836241, 24.562129436575646],
          [113.71797637304704, 24.56161768196249]
        ]
      },
      id: 76,
      len: 79.7
    },
    {
      geometry: {
        coordinates: [
          [113.71840263237303, 24.562013303902468],
          [113.71797938271868, 24.56160922921648]
        ]
      },
      id: 78,
      len: 87.1
    },
    {
      geometry: {
        coordinates: [
          [113.71803869507076, 24.562591674265278],
          [113.71843907956338, 24.562576130706574]
        ]
      },
      id: 79,
      len: 45
    },
    {
      geometry: {
        coordinates: [
          [113.71840263237303, 24.562013303902468],
          [113.71835585330757, 24.562188630156456]
        ]
      },
      id: 80,
      len: 30.3
    },
    {
      geometry: {
        coordinates: [
          [113.71818359537662, 24.560177909799094],
          [113.7183286423415, 24.560647473070752]
        ]
      },
      id: 81,
      len: 104.3
    },
    {
      geometry: {
        coordinates: [
          [113.71901481926787, 24.56150726912425],
          [113.7183286423415, 24.560647473070752]
        ]
      },
      id: 82,
      len: 136.3
    },
    {
      geometry: {
        coordinates: [
          [113.7183286423415, 24.560647473070752],
          [113.71869923189138, 24.55981005741417]
        ]
      },
      id: 83,
      len: 113.8
    },
    {
      geometry: {
        coordinates: [
          [113.71835585330757, 24.562188630156456],
          [113.71843907956338, 24.562576130706574]
        ]
      },
      id: 84,
      len: 49.2
    },
    {
      geometry: {
        coordinates: [
          [113.71835585330757, 24.562188630156456],
          [113.71840263237303, 24.562013303902468]
        ]
      },
      id: 85,
      len: 22.7
    },
    {
      geometry: {
        coordinates: [
          [113.71843907956338, 24.562576130706574],
          [113.71876402787822, 24.562663996429123]
        ]
      },
      id: 86,
      len: 38.1
    },
    {
      geometry: {
        coordinates: [
          [113.71855983885354, 24.559391264816952],
          [113.71920455726317, 24.55811346263748]
        ]
      },
      id: 88,
      len: 172.7
    },
    {
      geometry: {
        coordinates: [
          [113.71901481926787, 24.56150726912425],
          [113.71960071516673, 24.558398902831847]
        ]
      },
      id: 92,
      len: 390.3
    },
    {
      geometry: {
        coordinates: [
          [113.71955239720333, 24.558174855928982],
          [113.71932092091527, 24.558080698805277]
        ]
      },
      id: 94,
      len: 28.5
    },
    {
      geometry: {
        coordinates: [
          [113.71932092091527, 24.558080698805277],
          [113.72017852442917, 24.556648023029332]
        ]
      },
      id: 95,
      len: 214.5
    },
    {
      geometry: {
        coordinates: [
          [113.71960071516673, 24.558398902831847],
          [113.71955239720333, 24.558174855928982]
        ]
      },
      id: 96,
      len: 27.9
    },
    {
      geometry: {
        coordinates: [
          [113.71955239720333, 24.558174855928982],
          [113.72068939253663, 24.55754371470052]
        ]
      },
      id: 97,
      len: 148.9
    },
    {
      geometry: {
        coordinates: [
          [113.71960071516673, 24.558398902831847],
          [113.72094707108067, 24.559806306027355]
        ]
      },
      id: 98,
      len: 248.6
    },
    {
      geometry: {
        coordinates: [
          [113.7197525887888, 24.55948837055476],
          [113.72094707108067, 24.559806306027355]
        ]
      },
      id: 99,
      len: 228.7
    },
    {
      geometry: {
        coordinates: [
          [113.72017852442917, 24.556648023029332],
          [113.72055683521242, 24.55643971373012]
        ]
      },
      id: 100,
      len: 52.9
    },
    {
      geometry: {
        coordinates: [
          [113.72017852442917, 24.556648023029332],
          [113.72055683521242, 24.55643971373012]
        ]
      },
      id: 101,
      len: 70
    },
    {
      geometry: {
        coordinates: [
          [113.72055683521242, 24.55643971373012],
          [113.72133314088728, 24.555777231590135]
        ]
      },
      id: 102,
      len: 122.7
    },
    {
      geometry: {
        coordinates: [
          [113.72068939253663, 24.55754371470052],
          [113.72176693870057, 24.556961847091372]
        ]
      },
      id: 103,
      len: 150.7
    },
    {
      geometry: {
        coordinates: [
          [113.72068939253663, 24.55754371470052],
          [113.72166162829276, 24.556095689539973]
        ]
      },
      id: 104,
      len: 208.2
    },
    {
      geometry: {
        coordinates: [
          [113.72129033261484, 24.55976622169387],
          [113.72094707108067, 24.559806306027355]
        ]
      },
      id: 105,
      len: 38.5
    },
    {
      geometry: {
        coordinates: [
          [113.72119141179016, 24.55799217308131],
          [113.72156018355216, 24.557907639653138]
        ]
      },
      id: 106,
      len: 44.4
    },
    {
      geometry: {
        coordinates: [
          [113.7212087801357, 24.5438217957432],
          [113.72140939014062, 24.54398356217302]
        ]
      },
      id: 107,
      len: 46
    },
    {
      geometry: {
        coordinates: [
          [113.72129033261484, 24.55976622169387],
          [113.72144459105914, 24.55984844669962]
        ]
      },
      id: 108,
      len: 19.9
    },
    {
      geometry: {
        coordinates: [
          [113.72129033261484, 24.55976622169387],
          [113.72197641293135, 24.558319566584352]
        ]
      },
      id: 109,
      len: 194.5
    },
    {
      geometry: {
        coordinates: [
          [113.72140939014062, 24.54398356217302],
          [113.7219136561385, 24.55543122169822]
        ]
      },
      id: 110,
      len: 2021.7
    },
    {
      geometry: {
        coordinates: [
          [113.72144459105914, 24.55984844669962],
          [113.72187509735426, 24.559416223229526]
        ]
      },
      id: 111,
      len: 88.4
    },
    {
      geometry: {
        coordinates: [
          [113.72156018355216, 24.557907639653138],
          [113.72197641293135, 24.558319566584352]
        ]
      },
      id: 112,
      len: 73.9
    },
    {
      geometry: {
        coordinates: [
          [113.72156018355216, 24.557907639653138],
          [113.72171963756304, 24.55747280852959]
        ]
      },
      id: 113,
      len: 61.2
    },
    {
      geometry: {
        coordinates: [
          [113.72196621026578, 24.55542767195403],
          [113.72256297184535, 24.554780903268068]
        ]
      },
      id: 119,
      len: 104.1
    },
    {
      geometry: {
        coordinates: [
          [113.72321091664253, 24.554227263053924],
          [113.72473078486348, 24.553857316700956]
        ]
      },
      id: 128,
      len: 184.8
    },
    {
      geometry: {
        coordinates: [
          [113.72297518109715, 24.559721628570408],
          [113.72213546725558, 24.558294572848624]
        ]
      },
      id: 121,
      len: 365.3
    },
    {
      geometry: {
        coordinates: [
          [113.72213546725558, 24.558294572848624],
          [113.72264854343939, 24.556956052667218]
        ]
      },
      id: 122,
      len: 176
    },
    {
      geometry: {
        coordinates: [
          [113.72224823467323, 24.556165877018238],
          [113.72274597490832, 24.55676184758469]
        ]
      },
      id: 123,
      len: 91.9
    },
    {
      geometry: {
        coordinates: [
          [113.72256297184535, 24.554780903268068],
          [113.72445456022336, 24.554205776720543]
        ]
      },
      id: 124,
      len: 230.3
    },
    {
      geometry: {
        coordinates: [
          [113.72256297184535, 24.554780903268068],
          [113.72321091664253, 24.554227263053924]
        ]
      },
      id: 125,
      len: 99.3
    },
    {
      geometry: {
        coordinates: [
          [113.72660864121244, 24.556008491149704],
          [113.72650446225865, 24.5562402530591]
        ]
      },
      id: 139,
      len: 86.5
    },
    {
      geometry: {
        coordinates: [
          [113.72650446225865, 24.5562402530591],
          [113.72660864121244, 24.556008491149704]
        ]
      },
      id: 140,
      len: 30.9
    },
    {
      geometry: {
        coordinates: [
          [113.7127441527191, 24.55255523502676],
          [113.71351071472043, 24.552141854339695]
        ]
      },
      id: 141,
      len: 120.7
    },
    {
      geometry: {
        coordinates: [
          [113.71351071472043, 24.552141854339695],
          [113.7127441527191, 24.55255523502676]
        ]
      },
      id: 142,
      len: 105.2
    },
    {
      geometry: {
        coordinates: [
          [113.71351071472043, 24.552141854339695],
          [113.7142023071903, 24.551537544171765]
        ]
      },
      id: 143,
      len: 106.9
    },
    {
      geometry: {
        coordinates: [
          [113.72274597490832, 24.55676184758469],
          [113.72650446225865, 24.5562402530591]
        ]
      },
      id: 127,
      len: 1044.7
    },
    {
      geometry: {
        coordinates: [
          [113.72473078486348, 24.553857316700956],
          [113.72498852756965, 24.554179725742053]
        ]
      },
      id: 129,
      len: 50.7
    },
    {
      geometry: {
        coordinates: [
          [113.72516836112763, 24.554352626542745],
          [113.72612799718851, 24.554754129887755]
        ]
      },
      id: 132,
      len: 167.1
    },
    {
      geometry: {
        coordinates: [
          [113.72548799543841, 24.555283224190774],
          [113.72567912701629, 24.5557330989489]
        ]
      },
      id: 133,
      len: 66
    },
    {
      geometry: {
        coordinates: [
          [113.72567912701629, 24.5557330989489],
          [113.72660864121244, 24.556008491149704]
        ]
      },
      id: 134,
      len: 119.6
    },
    {
      geometry: {
        coordinates: [
          [113.72612799718851, 24.554754129887755],
          [113.72662115290152, 24.554799937482947]
        ]
      },
      id: 135,
      len: 85.6
    },
    {
      geometry: {
        coordinates: [
          [113.72635564210898, 24.554353694878756],
          [113.72612799718851, 24.554754129887755]
        ]
      },
      id: 136,
      len: 55.9
    },
    {
      geometry: {
        coordinates: [
          [113.72635564210898, 24.554353694878756],
          [113.72682783507346, 24.553952339197515]
        ]
      },
      id: 137,
      len: 82.3
    },
    {
      geometry: {
        coordinates: [
          [113.72635564210898, 24.554353694878756],
          [113.72682783507346, 24.553952339197515]
        ]
      },
      id: 138,
      len: 93.7
    },
    {
      geometry: {
        coordinates: [
          [113.7142023071903, 24.551537544171765],
          [113.71965682999729, 24.55668727566954]
        ]
      },
      id: 144,
      len: 1473.6
    },
    {
      geometry: {
        coordinates: [
          [113.71464968351651, 24.551292926021226],
          [113.7142023071903, 24.551537544171765]
        ]
      },
      id: 145,
      len: 58.8
    },
    {
      geometry: {
        coordinates: [
          [113.71633796426727, 24.561376243531477],
          [113.71661504154906, 24.569941054024575]
        ]
      },
      id: 146,
      len: 1168.7
    },
    {
      geometry: {
        coordinates: [
          [113.71253240952316, 24.56635364040627],
          [113.71284784119712, 24.564931148240824]
        ]
      },
      id: 147,
      len: 223.2
    },
    {
      geometry: {
        coordinates: [
          [113.72016076329095, 24.555614813394023],
          [113.72061136112714, 24.554293146198894]
        ]
      },
      id: 148,
      len: 175.2
    }
  ]

  data = data.map(item => {
    item = {
        geometry:{...item.geometry, type: "LineString"},
        properties:{
            id:item.id
        },
        type: "Feature",
    }
    return item;
  })
  data = JSON.stringify(data,null,4)
  fs.writeFile('./sympleData.js',data,'utf-8',function(err) {
    if(err) throw err;
    console.log("success done")
  })